package com.itheima.service;

import com.itheima.entity.Category;
import com.itheima.entity.Page;
import com.itheima.exception.CustomException;

import java.util.List;

public interface CategoryService {

    void save(Category category);

    Page<Category> findByPage(Integer page, Integer pageSize);

    void removeById(long id);

    void deleteById(long id) throws CustomException;

    void updateById(Category category);

    List<Category> list(Integer type);
}
